<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../core/include.inc.jsp"%>

<form id="pagerForm" method="post" action="actlookup">
    <input type="hidden" name="pageNum" value="${pageModel.pageNum}" />
    <input type="hidden" name="numPerPage" value="${pageModel.numPerPage}" />
    <input type="hidden" name="actName" value="${act.actName}" />
</form>

<form onsubmit="return navTabSearch(this);" action="actlookup" method="post">
    <div class="pageHeader">
        <div class="searchBar">
            <ul class="searchContent">
                <li>
                    <label>权限名称</label>
                    <input type="text" name="actName" value="${act.actName}" class="textInput" />
                </li>
                <li>
                    <label>不设置父类</label>
                    <a class="btnSelect" href="javascript:$.bringBack({actId:'0',pActName:''})" title="选择">选择</a>
                </li>
            </ul>
            <div class="subBar">
                <ul>
                    <li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
                </ul>
            </div>
        </div>
    </div>
    <div class="pageContent">
        <table class="table" width="100%" layoutH="137">
            <thead>
            <tr>
                <th>序号</th>
                <th>权限名称</th>
                <th>权限对应控制器</th>
                <th>备注</th>
                <th>是否显示在导航栏</th>
                <th>父权限</th>
                <th>选择</th>
            </tr>
            </thead>
            <tbody>
            <c:forEach var="item" items="${list}" varStatus="st">
                <tr target="item_id" rel="${item.id}" ondblclick="tableclick()">
                    <td>${st.index+1}</td>
                    <td>${item.actName}</td>
                    <td>${item.action}</td>
                    <td>${item.note}</td>
                    <td>
                        <c:choose>
                            <c:when test="${item.isNav}">显示</c:when>
                            <c:otherwise>不显示</c:otherwise>
                        </c:choose>
                    </td>
                    <td>${item.parent.actName}</td>
                    <td>
                        <a class="btnSelect" href="javascript:$.bringBack({actId:'${item.id}',pActName:'${item.actName}'})" title="选择">选择</a>
                    </td>
                </tr>
            </c:forEach>
            </tbody>
        </table>

        <c:import url="../core/dialogpagebar.inc.jsp" />

    </div>
</form>

<script type="text/javascript">

</script>


